﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPF_GUI.ViewModels
{
    public abstract class ChildWindowViewModel : ViewModelBase
    {
        protected MainPageViewModel _parentViewModel;

        public ChildWindowViewModel(MainPageViewModel parentViewModel)
        {
            _parentViewModel = parentViewModel;
        }

        public event EventHandler RequestClose;

        public void OnRequestClose()
        {
            EventHandler handler = this.RequestClose;
            if (handler != null)
                handler(this, EventArgs.Empty);
        } 
    }
}
